<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>ChompBombs:  Fichier source de /home/etu/c/p1006411/chompbombs/src/chemin.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Généré par Doxygen 1.7.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">ChompBombs</div>
   <div id="projectbrief">Jeu_de_Bomberman</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>/home/etu/c/p1006411/chompbombs/src/chemin.h</h1>  </div>
</div>
<div class="contents">
<a href="chemin_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef __CHEMIN__H</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define __CHEMIN__H</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00015"></a><a class="code" href="structchemin.html">00015</a> <span class="keyword">struct </span><a class="code" href="structchemin.html" title="case contenant un numero et la direction associé (utilisé pour l&amp;#39;IA)">chemin</a> {
<a name="l00016"></a><a class="code" href="structchemin.html#aee8894a14429c3412f2f326ff0aa8a51">00016</a>     <span class="keywordtype">int</span> <a class="code" href="structchemin.html#aee8894a14429c3412f2f326ff0aa8a51">num</a>;
<a name="l00017"></a><a class="code" href="structchemin.html#a5f6c67c968a491c543b661decf69ac95">00017</a>     <span class="keywordtype">char</span> <a class="code" href="structchemin.html#a5f6c67c968a491c543b661decf69ac95">deplacement</a>;
<a name="l00018"></a>00018 };
<a name="l00019"></a><a class="code" href="chemin_8h.html#afbc72fb00374e676eca5748addf90688">00019</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structchemin.html" title="case contenant un numero et la direction associé (utilisé pour l&amp;#39;IA)">chemin</a> <a class="code" href="structchemin.html" title="case contenant un numero et la direction associé (utilisé pour l&amp;#39;IA)">chemin</a>;
<a name="l00020"></a>00020 
<a name="l00028"></a>00028 <span class="keywordtype">void</span> <a class="code" href="chemin_8c.html#ae35787ebdae044ed6fba25fb4ab96b9d" title="initialise un tableau de chemin de taille x*y">initNumCheminTab</a>(<a class="code" href="structchemin.html" title="case contenant un numero et la direction associé (utilisé pour l&amp;#39;IA)">chemin</a>** tab, <span class="keyword">const</span> <span class="keywordtype">int</span> x, <span class="keyword">const</span> <span class="keywordtype">int</span> y);
<a name="l00029"></a>00029 
<a name="l00041"></a>00041 <span class="keywordtype">void</span> <a class="code" href="chemin_8c.html#abc209ac1e58b48b01fc934cb2cf0d63c" title="rempli le tableau en indiquant la distance entre la position x,y et chaque case, ainsi que la directi...">remplirNumCheminTab</a>(<span class="keywordtype">char</span>** tab1, <a class="code" href="structchemin.html" title="case contenant un numero et la direction associé (utilisé pour l&amp;#39;IA)">chemin</a>** tab2,
<a name="l00042"></a>00042                          <span class="keyword">const</span> <span class="keywordtype">int</span> x, <span class="keyword">const</span> <span class="keywordtype">int</span> y, <span class="keyword">const</span> <span class="keywordtype">int</span> n, <span class="keyword">const</span> <span class="keywordtype">char</span> c, <span class="keyword">const</span> <span class="keywordtype">int</span> strategie);
<a name="l00043"></a>00043 <span class="comment">/* strategie = 1 si attaque, 0 sinon */</span>
<a name="l00044"></a>00044 
<a name="l00050"></a>00050 <span class="keywordtype">int</span> <a class="code" href="chemin_8c.html#a44410dac0d70967cf0f46a7842a5dd53" title="valeur absolue de x">valeurAbs</a> (<span class="keyword">const</span> <span class="keywordtype">int</span> x);
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Définition de type</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Énumérations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Valeurs énumérées</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Généré le Thu Jun 7 2012 15:48:57 pour ChompBombs par&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>
